/**
 * @(#)ImsiRetentDaoImpl.java 2017年6月9日
 * Copyright(C) 2017年6月9日 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;


import java.util.HashMap;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IImsiRetentDao;
import org.jsbd.boss.domian.BruchTaskBean;
import org.jsbd.boss.domian.ImsiRetentSh;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

/**
 * 数据查询
 * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
 * @version 1.0.0
 */
@Repository("imsiRetentDao")
public class ImsiRetentDaoImpl extends CrackLogBaseDao implements IImsiRetentDao {
	public static final Logger LOGGER = LoggerFactory.getLogger(ImsiRetentDaoImpl.class);

	@Override
	public Map<String, Object> getImsiRetentPageList(DataGridModel page, ImsiRetentSh form) {
		form = (form == null ? new ImsiRetentSh() : form);
		form.setPageInfo(page);
		Map<String, Object> results = new HashMap<String, Object>();
		results.put("total", super.queryForCount("qy_crack_channel_retent.get_user_info_from_imsirenent_count", form));
		results.put("rows", super.queryForList("qy_crack_channel_retent.get_user_info_from_imsirenent", form));
		return results;
	}

	@Override
	public Map<String, Object> getImsiRetentLogPageList(DataGridModel page, ImsiRetentSh form) {
		form = (form == null ? new ImsiRetentSh() : form);
		form.setPageInfo(page);
		Map<String, Object> results = new HashMap<String, Object>();
		results.put("total", super.queryForCount("qy_crack_channel_retent.get_user_info_from_imsirenent_log_count", form));
		results.put("rows", super.queryForList("qy_crack_channel_retent.get_user_info_from_imsirenent_log", form));
		return results;
	}
}
